package com.tvunetworks.center.device.service;


import com.tvunetworks.center.common.model.param.search.SlugInfo;
import com.tvunetworks.center.device.model.GridMetadata;

/**
 * @author lebronchen
 * @program: tvucc-device
 * @description:
 * @create: 2019-03-19 14:17
 **/
public interface GridMetadataService {

    /**
     * @param peerId peerId
     * @return GridMetadata
     * @Description exclusions expired and deleted
     */
    GridMetadata getGridMetadataByPeerId(String peerId);

    /**
     * @param gridMetadata gridMetadata
     * @return int
     */
    int updateGridMetadata(GridMetadata gridMetadata);

    /**
     * @param gridMetadata gridMetadata
     */
    void addGridMetadata(GridMetadata gridMetadata);


    /**
     * @param
     * @return java.lang.String
     * @throws Exception if has error
     * @author KevinLi
     * @date 12/7/2021
     */
    String synGridSlug() throws Exception;


    /**
     * @author kevin
     * @param slugInfo slugInfo
     * @return boolean 是否成功
     * @throws Exception if has error
     **/
    boolean notificationDeleteSlug(SlugInfo slugInfo) throws Exception;
}
